home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-22 | 1.4 KB | 39 lines | [TEXT/GEOL] |
- Item 9152935 7-Aug-89 14:59
-
- From: BAJAJ.A Bajaj, Anil, APL
-
- To: MACAPP.TEST MacApp SQA Team
- MACAPP.TECH$ MACAPP Tech
-
- Sub: 2.0B9 Bug
-
- There is a bug in TEvtHandler.DoMultiClick which is supposed to determine if
- the current newDownPt is close enough (vertically as well as horizontally) to
- lastDownPt i.e. within the distance specified by gStdHyteresis. However, in B9
- this method returns true if the difference between the two points is either
- vertically or horizontally within gStdHysteresis. Thus, if the user clicks at a
- location at the top and bottom of the screen (vertically far apart) but in the
- same horizontal column i.e. within 4 pixels of it, and within GetDoubleTime,
- then it is treated as a doubleClick.
-
- -----------------------------------------------------------------
-
- FUNCTION TEvtHandler.DoMultiClick(lastDownPt, newDownPt: Point): BOOLEAN;
-
- BEGIN
- IF fNextHandler <> NIL THEN
- DoMultiClick := fNextHandler.DoMultiClick(lastDownPt, newDownPt)
- ELSE
- DoMultiClick := (ABS(lastDownPt.h - newDownPt.h) <= (gStdHysteresis.h)) |
- (ABS(lastDownPt.v - newDownPt.v) <= (gStdHysteresis.v));
- END;
-
- --------------------------------------------------------------------------^
-
- The '|' should actually be an '&' over here shouldn't it.
-
- Anil Bajaj
- MacDSS Project
-
-
-